<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.basic.role.role.RoleResList"/>
<script language="javascript">	
	
	function roleResAuthBtn_onclick(grid,page){
		
		var role_id = grid.getFieldValue("ROLE_ID");
		var pw_app_id = grid.getFieldValue("PW_APP_ID");
		var is_general = grid.getFieldValue("IS_GENERAL");
		
		if(role_id==null||role_id=="") {
			return;
		}
		if(pw_app_id==null||pw_app_id=="") {
			alert("获取的应用标示为空！");
			return;
		}
		
		Yacon.showModal({
			height : "70%",
			width : "85%",
			url : "menu/menuInfo.jsp?pw_app_id="+pw_app_id+"&role_id="+role_id,
			close : "roleResAuthBtn_close"
		});
		
	}
	
	function roleResAuthBtn_close(windows,page){
		page.find("roleresTable").refresh();
	}
</script>

